/*
背景色：#f5f5f5
主色：#0152d9  浅色#3e77d2  深色#124296
白色：#ffffff
 */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    background: #f5f5f5;
    font-size: 14px;
    letter-spacing: 1px; /* 字间距 */
}


.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    position: relative; /* 相对定位 */
}

.sidebar .bg_shadow {
    width: 100%;
    height: 100%;
    position: fixed; /* 定位 */
    top: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar_inner {
    width: 250px;
    position: fixed;
    top: 0;
    height: 100vh;
    background: #99a4b2;
    z-index: 999;
    transition: all 0.3s ease;
}

.main_container {
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: all 0.3s ease;
}

.sidebar_inner .profile_info {
    padding: 20px;
    text-align: center;
}

.sidebar_inner .profile_info .profile_img {
    width: 100px;
    margin: 0 auto 5px;
}

.sidebar_inner .profile_info .profile_img img {
    width: 100%;
    border-radius: 50%;
    display: block;
}

.sidebar_inner .profile_info .profile_data .name {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
}

.profile_data {
    display: flex; /* 开启Flexbox布局 */
    flex-direction: column; /* 设置子元素垂直排列 */
    justify-content: space-between; /* 子元素垂直方向上均匀分布 */
    align-items: center; /* 子元素水平居中对齐 */
    /*height: 100%; !* 你可能需要设置一个高度，以便有足够的空间进行分布 *!*/
}

.span-info {
    margin-bottom: 10px;
}

.username {
    color: #ffffff;
    margin-bottom: 10px;
}

.sidebar_inner .profile_info .profile_data span {
    color: #ffffff;
}

/* 侧边栏 */

.sidebar_inner .sidebar_menu {
    height: 490px;
    overflow: auto;

}

.sidebar_inner .sidebar_menu > li > a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1px;
    color: #ffffff;
}

.sidebar_inner .sidebar_menu > li > a .icon {
    font-size: 25px;
    margin-left: 15px;
}

.title {
    margin-left: 10px;
}

.sidebar_inner .sidebar_menu > li.active > a,
.sidebar_inner .sidebar_menu > li > a:hover {
    background: #0152d9;
}

.sidebar_inner .sidebar_menu > li > a .arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    transition: all 0.3s ease;
}

.sidebar .logout_btn a {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 210px;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 3px;
    font-width: 600px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar .logout_btn a:hover {
    border: 1px solid #ee0000;
    background: #ee0000;
    color: #ffffff;
}

.sidebar_inner .close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 25px;
    color: #ffffff;

    cursor: pointer;
    display: none;
}

.sidebar_inner .close:hover,
.navbar .hamburger:hover {
    opacity: 0.7;
}

.navbar {
    background: #ffffff;
    height: 50px;
    width: 100%;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    /*justify-content: space-between; !* 分隔左侧和右侧内容 *!*/
}

.navbar .hamburger {
    font-size: 25px;
    cursor: pointer;
    margin-right: 20px;
    color: #0152d9;
    display: none;
}

.navbar .logo a {
    color: #0152d9;
    font-size: 20px;
}

.version {
    color: #666;
    font-size: 14px;
}

.operation {
    display: flex;
    justify-content: flex-end; /* 将内容向右对齐 */
    align-items: center; /* 垂直居中对齐 */
    width: 100%;
    margin-top: 10px;
}

.search {
    margin-left: 20px;
    margin-right: 10px; /* 调整搜索框和增加按钮之间的间距 */
}

.count-content {
    display: flex; /* 使用 Flex 布局 */
    justify-content: space-between; /* 水平分布在容器内 */
    align-items: center; /* 垂直居中对齐 */
}

.count-line {
    display: flex;
    align-items: center;
}

.count-line label {
    margin-left: 10px;
    font-weight: bold;
}

.count-line span {
    background-color: #f2f2f2;
    border-radius: 3px;
    margin-right: 10px;
}

/* 搜索输入框的样式 */
.search-input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
}

@media (max-width: 700px) {
    .operation {
        flex-direction: column; /* 垂直布局 */
        align-items: center; /* 居中对齐 */
    }

    .search,
    .count {
        margin-bottom: 10px; /* 设置间距 */
    }
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    color: #fff;
    background-color: #0152d9;
    transition: background-color 0.3s ease;
}

.btn_green {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    color: #fff;
    background-color: #28a745;
    transition: background-color 0.3s ease;
}

.content {
    margin-top: 50px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

.content .item {
    /*background: #ffffff;*/
    /*box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.125),*/
    /*-2px -2px 4px rgba(0, 0, 0, 0.125);*/
    /*margin: 10px 5px;*/
    width: 24%;
    /*padding: 20px;*/
}


.accordion {
    background: #3e77d2;
    padding-left: 50px;
    height: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}


.sidebar_menu > li.active .accordion {
    height: auto;
}

.sidebar_menu > li.active .arrow {
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .sidebar_inner {
        left: -115%;
        transition: all 0.5s ease;
    }

    .main_container {
        width: 100%;
        margin-left: 0;
    }

    .sidebar_inner .close,
    .navbar .hamburger {
        display: block;
    }

    .content .item {
        width: 47%;
    }

    .wrapper.active .sidebar_inner {
        left: 0;
        transition: all 0.5s ease;
    }

    .wrapper.active .sidebar .bg_shadow {
        visibility: visible;
        opacity: 0.7;
    }
}


@media (max-width: 528px) {
    .content .item {
        width: 100%;
    }
}


.login-container, .register-container {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 100vh; /* 视口高度 */
    background-color: #f5f5f5;
}

.login-content, .register-content {
    display: flex;
    flex-direction: column; /* 子元素垂直排列 */
    width: 300px; /* 设置内容宽度 */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
}

.login-content h1, .register-content h1 {
    margin-bottom: .5em;
    color: #333;
    text-align: center;
}

.login-content p, .register-content p {
    margin-bottom: 2em;
    color: #666;
    text-align: center;
}

.login-form, .register-form {
    display: flex;
    flex-direction: column; /* 子元素垂直排列 */
}

.login-form input, .register-form input {
    margin-bottom: 30px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.button-group {
    display: flex;
    justify-content: space-between; /* 按钮水平分布 */
}

.button-group button {
    flex-basis: 48%; /* 按钮宽度 */
    padding: 10px;
    border: none;
    border-radius: 3px;
    color: #ffffff;
}

.button-group button[type="submit"] {
    background-color: #0152d9;
}

.button-group button[type="button"] {
    background-color: #28a745;
}


.form-container {
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    display: flex;
    padding: 20px; /* 或者设置为其他合适的值 */

    height: 100vh; /* 视口高度 */
}

.form-content {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.form-content h1 {
    margin-bottom: .5em;
    text-align: center;
    color: #333;
}

.form-content p {
    margin-bottom: 1em;
    color: #666;
}

.input-form {
    display: flex;
    flex-direction: column;
}

.input-form input,
.input-form button {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.input-form button {
    border: none;
    border-radius: 3px;
    background-color: #0152d9;
    color: #fff;
}

/* 下拉框样式 */
.input-form select {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* 下拉框激活时样式 */
.input-form select:focus {
    outline: none;
    border-color: #0152d9;
    box-shadow: 0 0 5px rgba(1, 82, 217, 0.5);
}
textarea {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    resize: none; /* 不允许调整大小 */
}






.info-container {
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    display: flex;
    padding: 20px;

    /*height: 100vh; !* 视口高度 *!*/
}

.info-content {
    width: 300px; /* 或根据实际内容调整宽度 */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.info-content h2 {
    margin-bottom: 1em;
    color: #333;
    text-align: center;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-row label {
    font-weight: bold;
    color: #333;
}

.info-row span {
    color: #666;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px; /* 根据需要调整间距 */
}

.button-group button {
    flex-basis: 48%; /* 按钮宽度 */
    padding: 10px;
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer; /* 鼠标悬停时显示手型图标 */
}

.button-group button:first-child {
    background-color: #0152d9;
}

.button-group button:last-child {
    background-color: #28a745;
}

